def fibonachi (final):
	num1=0
	num2=1
	print num1
	num3=num1 + num2
	while num3<=final:
		print num3
		num3=num1 + num2
		num1=num2
		num2=num3

fibonachi (50)
